.class public Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;
.super Lcom/jecelyin/common/widget/dialog/vh/AbstractDialogViewHolder;
.source "RadioBtnViewHolder.java"


# instance fields
.field payImg:Landroid/widget/ImageView;

.field radioButton:Landroid/widget/RadioButton;


# direct methods
.method public constructor <init>(Landroid/view/ViewGroup;)V
    .locals 1

    .line 1
    sget v0, Lcom/jecelyin/editor/v2/k;->je_dialog_item_radio_layout:I

    invoke-direct {p0, p1, v0}, Lcom/jecelyin/common/widget/dialog/vh/AbstractDialogViewHolder;-><init>(Landroid/view/ViewGroup;I)V

    return-void
.end method


# virtual methods
.method public initViews()V
    .locals 2

    .line 1
    sget v0, Lcom/jecelyin/editor/v2/j;->item_radio_btn:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/vh/AbstractDialogViewHolder;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioButton;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->radioButton:Landroid/widget/RadioButton;

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Landroid/widget/RadioButton;->setFocusable(Z)V

    .line 3
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->radioButton:Landroid/widget/RadioButton;

    invoke-virtual {v0, v1}, Landroid/widget/RadioButton;->setClickable(Z)V

    .line 4
    sget v0, Lcom/jecelyin/editor/v2/j;->pay_flag_img:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/vh/AbstractDialogViewHolder;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->payImg:Landroid/widget/ImageView;

    return-void
.end method

.method public onBindData(Lcom/jecelyin/common/widget/dialog/DialogListAdapter$b;)V
    .locals 0

    return-void
.end method

.method public onBindData(Lcom/jecelyin/common/widget/dialog/DialogListAdapter$b;Z)V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->radioButton:Landroid/widget/RadioButton;

    invoke-virtual {v0, p2}, Landroid/widget/RadioButton;->setSelected(Z)V

    .line 2
    iget-object p2, p1, Lcom/jecelyin/common/widget/dialog/DialogListAdapter$b;->d:Ljava/lang/Object;

    instance-of v0, p2, Lcom/jecelyin/editor/v2/q$a;

    const/4 v1, 0x0

    const/16 v2, 0x8

    if-eqz v0, :cond_2

    .line 3
    check-cast p2, Lcom/jecelyin/editor/v2/q$a;

    .line 4
    invoke-static {}, Lcom/jecelyin/editor/v2/b;->c()Z

    move-result p1

    if-eqz p1, :cond_0

    .line 5
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->payImg:Landroid/widget/ImageView;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_1

    .line 6
    :cond_0
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->payImg:Landroid/widget/ImageView;

    iget-boolean v0, p2, Lcom/jecelyin/editor/v2/q$a;->d:Z

    if-eqz v0, :cond_1

    goto :goto_0

    :cond_1
    const/16 v1, 0x8

    :goto_0
    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 7
    :goto_1
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->radioButton:Landroid/widget/RadioButton;

    iget-object p2, p2, Lcom/jecelyin/editor/v2/q$a;->a:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/widget/RadioButton;->setText(Ljava/lang/CharSequence;)V

    goto :goto_4

    .line 8
    :cond_2
    instance-of v0, p2, Lcom/jecelyin/editor/v2/c$a;

    if-eqz v0, :cond_5

    .line 9
    check-cast p2, Lcom/jecelyin/editor/v2/c$a;

    .line 10
    invoke-static {}, Lcom/jecelyin/editor/v2/b;->c()Z

    move-result p1

    if-eqz p1, :cond_3

    .line 11
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->payImg:Landroid/widget/ImageView;

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_3

    .line 12
    :cond_3
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->payImg:Landroid/widget/ImageView;

    iget-boolean v0, p2, Lcom/jecelyin/editor/v2/c$a;->c:Z

    if-eqz v0, :cond_4

    goto :goto_2

    :cond_4
    const/16 v1, 0x8

    :goto_2
    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 13
    :goto_3
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->radioButton:Landroid/widget/RadioButton;

    iget-object p2, p2, Lcom/jecelyin/editor/v2/c$a;->a:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/widget/RadioButton;->setText(Ljava/lang/CharSequence;)V

    goto :goto_4

    .line 14
    :cond_5
    iget-object p2, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->payImg:Landroid/widget/ImageView;

    invoke-virtual {p2, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 15
    iget-object p2, p0, Lcom/jecelyin/common/widget/dialog/vh/RadioBtnViewHolder;->radioButton:Landroid/widget/RadioButton;

    iget-object p1, p1, Lcom/jecelyin/common/widget/dialog/DialogListAdapter$b;->b:Ljava/lang/CharSequence;

    invoke-virtual {p2, p1}, Landroid/widget/RadioButton;->setText(Ljava/lang/CharSequence;)V

    :goto_4
    return-void
.end method
